<script setup lang="ts">
import router from '@/router';
</script>

<template>
    <div class="details">
        <div class="container">
            <router-link class="return" to="/home">
                <i></i>
            </router-link>
            <h3>杨国福麻辣烫</h3>
            <div class="img">
            </div>
            <div class="rich">
                <span>￥18.99</span>
                <van-icon name="like-o" />
            </div>
            <span>月售:1099</span>
            <p>杨国福是一个麻辣烫品牌，采用中草骨汤作为汤底，同时提供应季蔬菜、肉类等产品，并配有数十种小料产品。主要通过线下门店为用户提供餐饮服务，同时提供线上预订以及送货上门等服务</p>
            <router-link to="/settlement" class="footer">
                <button>下单</button>
            </router-link>
        </div>
    </div>
</template>

<style lang="less" scoped>
.return i {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url(../assets/img/return.png);
    background-size: cover;
    margin-top: 20px;
    margin-left: 10px;
}

h3 {
    margin-left: 10px;
    margin-top: 10px;
    font-size: 20px;
}

.img {
    width: 355px;
    height: 358px;
    border-radius: 16px;
    background-image: url(../assets/img/3.png);
    background-repeat: no-repeat;
    background-size: cover;
    margin-top: 15px;
}

.rich {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;

    span {
        font-size: 18px;
        color: red;
    }

    .van-icon {
        font-size: 24px;
        color: #ccc;
    }
}

span {
    font-size: 12px;
    color: #A4A4A4;
}

p {
    margin-top: 10px;
    font-size: 13px;
    color: #A4A4A4;
}
.footer {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
}
.footer button {
    font-size: 14px;
    background-color: #1EC28A;
    color: #ffffff;
    border-radius: 25px;
    width: 160px;
    height: 50px;
}
</style>
